<include file="__THEME__/public_header" />
<script src="__APP__/upload_page.js" type="text/javascript"></script>
<script src="__THEME__/js/gjwjs/jquery.mzcategory.js" type="text/javascript"></script>
<script>
$(function(){
	$('#Tree_Menu_Add1').mzcategory({
		url:U('widget/VideoLevel/getParent'),
		hiddencid:'fullcategorypath',
		type:2,
		navData:'<?php echo $fullcategorypath; ?>'
	});
});
window.onload=function()
{
	 //公用库
	higher_common();
	//个人中心左侧菜单
	(function(){
	  home_titlista();
	})();
	
	 (function(){
		var oTextA=getByClass(document,'text_A')[0];
		var oTextarea=getByTagName(oTextA,'textarea')[0];
		var oLabel=getByTagName(oTextA,'label')[0];
		oTextarea.onfocus=function()
		{
			oLabel.style.display='none';
			oTextA.style.border='solid 1px #85C155';
		}
		oTextarea.onblur=function()
		{
			if(oTextarea.value=='')
			{ 
			  oLabel.style.display='block';
			  oTextA.style.border='solid 1px #CECECE';
			}
		}
		oLabel.onclick=function()
		{
			oTextarea.focus();
		}
	 })();
	 //搜索
	 //input输入
	 (function(){
		var oMyInput=getByClass(document,'Album_Title_s');
		for(var i=0; i<oMyInput.length; i++)
		{
			Album_Title_input(oMyInput[i]);     
		}
	 })();
	
	 
};


//uploadwidget 回调方法
function upload_callback(data){
	$('#'+data.key+'_cover'+' img').attr('src',UPLOAD_URL + '/'+data.src)
	$("#"+data.key+"_ids1").val(data.attach_id);
	$('#'+data.key+'_cover').show();
	return false;
	/*$("#"+data.key+"_ids").parent().find("ul").append(
		'<li class="upload_cover"><img src="'+UPLOAD_URL + '/'+data.src+'" width="100">'
		+'<a onclick="core.uploadFile.removeAttachId(this,\'image\','+data.attach_id+')" href="javascript:void(0)" class="name">删除</a></li>'
	);
	$("#"+data.key+"_ids").val(data.attach_id);*/
}
var validate = function(_form){
	return true;
};
</script>
<div class="main mt35 clearfix">
	<div class="plr40 main_box_index fl">
        <h4 class="ft18 pt20">个人中心</h4>
        <!-- 左边开始 -->
        <include file="../User/_left" />
        <!-- 左边结束 -->
        <div class="cent_r_box clearfix">
            <div class="nva_cent">
                <ul class="Nav_bar fl">
                    <li class="sel_cent_r">编辑专辑</li>
                </ul>
            </div>
            <form id="zmform" name="zmform" action="{:U('classroom/User/doAlbum_edit')}" method="post" onsubmit="return j_validateCallback(this,validate);">
            <input name="id" type="hidden" value="{$id}" />
            <div class="pb40 plr40">
                <div class="mt10b20 h55 clearfix">
                    <span class="selected_title w100 color_hui fl">
                        <font color="red"> * </font>
                        专辑名称
                    </span>
                    <div id="Album_Title" class="Album_Title_s myInput1 fl w280">
                        <input name="album_title" id="album_title" class="head_search upload_input_a" type="text" value="{$album_title}" style="width:100%">
                        <span id="s_span" style="display:none;">请添写专辑名称</span>
                    </div>
                </div>
                <div class="mt10b20 h90 clearfix">
                    <span class="selected_title w100 color_hui fl">
                    <font color="red"> * </font>
                    专辑简介
                    </span>
                    <div class="editwrap text_A fl w280 h65">
                    <textarea name="album_intro" id="album_intro" class="j-edittxt edittxt h65">{$album_intro}</textarea>
                    <label id="auto-id-drt6TisVISpRhnQa" class="j-hint hint" for="edittxt" style="display:none;"> 请输入课程简介… </label>
                    </div>
                </div>
                <div class="mt10b20 clearfix" style="height:35px;"> 
                    <span class="selected_title w100 color_hui fl">
                    <font color="red"> * </font>
                    专辑分类
                    </span>
                    <a id="Tree_Menu_Add1" class="Attention sel_w fl" href="javascript:;">添加</a>
                </div>
                <!--MissZhou TODO  这个位置不变  也不能删除--->
                <div class="selected_con m5_38 clearfix" style="background:none;margin-top:0px;padding-left:62px;"></div>
                <!--//MissZhou TODO  这个位置不变  也不能删除--->
                
                
                <div class="mt10b20 H100 clearfix">
                    <span class="selected_title w100 color_hui fl">
                    <font color="red"> * </font>
                    授课封面(278*240)：
                    </span>
                    <div id="width_150">
						{:W('Upload',array('callback'=>'upload_callback','uploadType'=>'image','limit'=>'1','inputname'=>'teaching','inForm'=>'0'))}
                        <div id="teaching_cover" <if condition=" !$teaching_cover ">style="display:none;"</if> >
                            <img style="max-width:100px;padding:2px; border:1px solid #ccc;width:80px;height:80px;" src="{$teaching_cover}" />
                            <input type="hidden" name="teaching_ids1" id="teaching_ids1" data="teaching_ids" value="{$teaching_ids}" />
                        </div>
                    </div>
                </div>
                <div class="mt10b20 H100 clearfix">
                    <span class="selected_title w100 color_hui fl">
                    <font color="red"> * </font>
                    专辑大图(278*240)：
                    </span>
                    <div id="width_150">
                    {:W('Upload',array('callback'=>'upload_callback','uploadType'=>'image','limit'=>'1','inputname'=>'big','inForm'=>'0'))}
                    <div id="big_cover" <if condition=" !$big_cover ">style="display:none;"</if> >
                        <img style="max-width:100px;padding:2px; border:1px solid #ccc;width:80px;height:80px;" src="{$big_cover}" />
                        <input type="hidden" name="big_ids1" id="big_ids1" data="big_ids" value="{$big_ids}" />
                    </div>
                    </div>
                </div>
                <div class="mt10b20 H100 clearfix">
                    <span class="selected_title w100 color_hui fl">
                    <font color="red"> * </font>
                    专辑中图(276*137)：
                    </span>
                    <div id="width_150">
                    {:W('Upload',array('callback'=>'upload_callback','uploadType'=>'image','limit'=>'1','inputname'=>'middle','inForm'=>'0'))}
                   
                    <div id="middle_cover" <if condition=" !$middle_cover ">style="display:none;"</if> >
                        <img style="max-width:100px;padding:2px; border:1px solid #ccc;width:80px;height:80px;" src="{$middle_cover}" />
                        <input type="hidden" name="middle_ids1" data="middle_ids" id="middle_ids1" value="{$middle_ids}" />
                    </div>
                    
                    </div>
                </div>
                <div class="mt10b20 H100 clearfix">
                    <span class="selected_title w100 color_hui fl">
                    <font color="red"> * </font>
                    专辑小图(278*240)：
                    </span>
                    <div id="width_150">
						{:W('Upload',array('callback'=>'upload_callback','uploadType'=>'image','limit'=>'1','inputname'=>'small','inForm'=>'0'))}
						
                        <div id="small_cover" <if condition=" !$small_cover ">style="display:none;"</if> >
                            <img style="max-width:100px;padding:2px; border:1px solid #ccc;width:80px;height:80px;" src="{$small_cover}" />
                            <input type="hidden" name="small_ids1" id="small_ids1" data="small_ids" value="{$small_ids}" />
                        </div>
                    </div>
                </div>
                
                <div class="mt10b20 h55 clearfix">
                    <span class="selected_title w100 color_hui fl">
                        <font color="red"> * </font>
                        专辑标签：
                    </span>
                    <div id="Album_Title" class="Album_Title_s myInput1 w280">
                        <input name="album_tag" id="album_tag" class="head_search upload_input_a" type="text" value="{$str_tag}" style="width:100%">
                        <span id="s_span" style="display:none;">请添写专辑标题</span>
                    </div>
                    <p class="ml100 lh30">多个标签请以半角，逗号分割</p>
                </div>
				<div class="mt10b20 h55 clearfix">
                    <span class="selected_title w100 color_hui fl">
						<font color="red"> * </font>
						下架时间：
					</span>
					<input type="text" readonly id="uctime" name="uctime" value="<if condition=' $uctime '>{$uctime}</if>" onfocus="core.rcalendar(this,'full');" />	
                </div>
				<div class="mt10b20 h55 clearfix" style="text-align:center;margin-top:0px">
                	<input type="submit" class="Save btn_big_r" value="保存专辑信息" style="border:none;cursor:pointer;outline:none;"/>
					<!--<a id="start_creat" class="Save btn_big_r" style="margin-top:0px;" href="javascript:;">保存专辑信息</a>-->
				</div>
            </div>
            </form>   
        </div>
    </div>
    <!-- 右边开始 -->
    <include file="../User/_right" />
    <!-- 右边结束 -->
</div>
<include file="__THEME__/public_footer_g" />
</body>
</html>